import config from "@/config"
import http from "@/utils/request"

export default {
	menu: {
		myMenus: {
			url: `${config.API_URL}/v1/menu/getByUser`,
			name: "获取我的菜单",
			get: async function(){
				return await http.get(this.url);
			}
		},
		list: {
			url: `${config.API_URL}/system/menu/list`,
			name: "获取菜单",
			get: async function(){
				return await http.get(this.url);
			}
		}
	},
	dic: {
		tree: {
			url: `${config.API_URL}/system/dic/tree`,
			name: "获取字典树",
			get: async function(){
				return await http.get(this.url);
			}
		},
		list: {
			url: `${config.API_URL}/system/dic/list`,
			name: "字典明细",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
		get: {
			url: `${config.API_URL}/system/dic/get`,
			name: "获取字典数据",
			get: async function(params){
				return await http.get(this.url, params);
			}
		}
	},
	role: {
		list: {
			url: `${config.API_URL}/system/role/list2`,
			name: "获取角色列表",
			get: async function(params){
				return await http.get(this.url, params);
			}
		}
	},
	dept: {
		list: {
			url: `${config.API_URL}/system/dept/list`,
			name: "获取部门列表",
			get: async function(params){
				return await http.get(this.url, params);
			}
		}
	},
	user: {
		list: {
			url: `${config.API_URL}/system/user/list`,
			name: "获取用户列表",
			get: async function(params){
				return await http.get(this.url, params);
			}
		}
	},
	app: {
		list: {
			url: `${config.API_URL}/system/app/list`,
			name: "应用列表",
			get: async function(){
				return await http.get(this.url);
			}
		}
	},
	log: {
		list: {
			url: `${config.API_URL}/system/log/list`,
			name: "日志列表",
			get: async function(params){
				return await http.get(this.url, params);
			}
		}
	},
	table: {
		list: {
			url: `${config.API_URL}/system/table/list`,
			name: "表格列管理列表",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
		info: {
			url: `${config.API_URL}/system/table/info`,
			name: "表格列管理详情",
			get: async function(params){
				return await http.get(this.url, params);
			}
		}
	},
	tasks: {
		list: {
			url: `${config.API_URL}/system/tasks/list`,
			name: "系统任务管理",
			get: async function(params){
				return await http.get(this.url, params);
			}
		}
	},
	sysTenant:{
		list:{
			url:`${config.API_URL}/v1/sysTenant/list`,
			name:"租户列表",
			get: async function(params){
				return await http.get(this.url, params);
			}
		}
	},
	sysProject:{
		list:{
			url:`${config.API_URL}/v1/sysProject/list`,
			name:"获取项目列表",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
	},
	sysApplication:{
		list:{
			url:`${config.API_URL}/v1/sysApplication/list`,
			name:"获取应用列表",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
		sortList:{
			url:`${config.API_URL}/v1/sysApplication/sortList`,
			name:"应用分类列表",
			get: async function(params){
				return await http.get(this.url, params);
			}
		}
	},
	sysArea:{
		getTree:{
			url:`${config.API_URL}/v1/sysArea/tree`,
			name:"根据父节点，获取树形菜单",
			get: async function(params){
				return await http.get(this.url, params);
			}
		}
	},
	dictionary:{
		highestList:{
			url:`${config.API_URL}/v1/dictionary/highestList`,
			name:"获取最高级别的字典",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
		getTypeTree:{
			url:`${config.API_URL}/v1/dictionary/typeTree`,
			name:"获取字典类型",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
		list:{
			url:`${config.API_URL}/v1/dictionary/list`,
			name:"获取字典类型",
			get: async function(params){
				return await http.get(this.url, params);
			}
		}
	},
	sysBaseCountry:{
		continentList:{
			url:`${config.API_URL}/v1/sysBaseCountry/continentList`,
			name:"获取洲",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
		list:{
			url:`${config.API_URL}/v1/sysBaseCountry/list`,
			name:"获取国家",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
	},
	sysBaseArea:{
		list:{
			url:`${config.API_URL}/v1/sysBaseArea/list`,
			name:"获取区域",
			get: async function(params){
				return await http.get(this.url, params);
			}
		}
	},
	sysResource:{
		list:{
			url:`${config.API_URL}/v1/sysResource/list`,
			name:"获取资源列表",
			get: async function(params){
				return await http.get(this.url, params);
			}
		}
	}
}
